<?php

// +----------------------------------------------------------------------
// | 缓存设置
// +----------------------------------------------------------------------

return [
    // 默认缓存驱动
    'default' => 'redis0',

    'stores'  => [
        'redis0'   =>  [
            'type'   => 'redis',
            'host'       => getenv('REDIS_HOST'),
            'password'   => getenv('REDIS_PASSWORD'),
            'select'    =>  0,
            'prefix'     => 'zh_',
            'expire'     => 0,
            'tag_prefix' => 'zh_tag:',
            'serialize'  => [],
        ],
        'redis2'   =>  [
            'type'   => 'redis',
            'host'       => getenv('REDIS_HOST'),
            'password'   => getenv('REDIS_PASSWORD'),
            'select'    =>  2,
            'prefix'     => 'zh_',
            'expire'     => 0,
            'tag_prefix' => 'zh_tag:',
            'serialize'  => [],
        ],
        'redis3'   =>  [
            'type'   => 'redis',
            'host'       => getenv('REDIS_HOST'),
            'password'   => getenv('REDIS_PASSWORD'),
            'select'    =>  3,
            'prefix'     => 'zh_',
            'expire'     => 0,
            'tag_prefix' => 'zh_tag:',
            'serialize'  => [],
        ],
        'redis4'   =>  [
            'type'   => 'redis',
            'host'       => getenv('REDIS_HOST'),
            'password'   => getenv('REDIS_PASSWORD'),
            'select'    =>  4,
            'prefix'     => 'zh_',
            'expire'     => 0,
            'tag_prefix' => 'zh_tag:',
            'serialize'  => [],
        ],
        'redis5'   =>  [
            'type'   => 'redis',
            'host'       => getenv('REDIS_HOST'),
            'password'   => getenv('REDIS_PASSWORD'),
            'select'    =>  5,
            'prefix'     => 'zh_',
            'expire'     => 0,
            'tag_prefix' => 'zh_tag:',
            'serialize'  => [],
        ],
        'redis6'   =>  [
            'type'   => 'redis',
            'host'       => getenv('REDIS_HOST'),
            'password'   => getenv('REDIS_PASSWORD'),
            'select'    =>  6,
            'prefix'     => 'zh_',
            'expire'     => 0,
            'tag_prefix' => 'zh_tag:',
            'serialize'  => [],
        ],
        'redis7'   =>  [
            'type'   => 'redis',
            'host'       => getenv('REDIS_HOST'),
            'password'   => getenv('REDIS_PASSWORD'),
            'select'    =>  7,
            'prefix'     => 'zh_',
            'expire'     => 0,
            'tag_prefix' => 'zh_tag:',
            'serialize'  => [],
        ],
    ],
];
